//设置交互类型以及对应值的方法
export function setInteraction(id) {
    switch (id) {
        case 'key001':
            return [
                {
                    type: "PointHost_NoSameName",
                    jhtbName: "带线式",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134013default.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "避难场所",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134121binanchangsuo.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "储备库",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134223chubeiku.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "防护目标",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134313fanghumobiao.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "高等教育学院",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134427gaodengjiaoyuxueyuan.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "军警",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134459junjing.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "救援人员",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134524jiuyuanrenyuan.png",
                },
            ]
        case 'key002':
            return [
                {
                    type: "PointHost_NoSameName",
                    jhtbName: "带线式",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134013default.png",
                },
            ]

        case 'key003':
            return [
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "避难场所",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134121binanchangsuo.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "储备库",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134223chubeiku.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "防护目标",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134313fanghumobiao.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "高等教育学院",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134427gaodengjiaoyuxueyuan.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "军警",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134459junjing.png",
                },
                {
                    type: "CustomPoint_NoSameName",
                    jhtbName: "救援人员",
                    jhtbIcon:
                        "/upload/module/cdggssgl/file/20220707134524jiuyuanrenyuan.png",
                },
            ]
    }
}

//使用交互的方法
export function useInteraction(val) {

    switch (val.type) {
        //普通点位
        case "PointHost_NoSameName":
            $ue4.startPoint("PointHost_NoSameName");
            break;
        //自定义点位
        case "CustomPoint_NoSameName":
            $ue4.startCustomPoint(
                "CustomPoint_NoSameName",
                'http://192.168.60.73:27532' + val.jhtbIcon
            );
            break;
    }

}